ContextCapture 用户指南

添加场景描述

场景名称和描述显示在 ContextCapture Web Viewer 中。场景名称和描述均可在 Scene/YourProduction.3mx 文件中定义。您可以使用文本编辑器打开该文件,然后替换名称和描述标签。

例如,名为“YourProduction”的生产项目将具有默认根 YourProduction.3mx,如下所示:

{
"3mxVersion": 1,
"name": " YourProduction",
"description": "Scene generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>",
"logo": "logo.png",
"sceneOptions": [{"navigationMode":"PAN"}],
"layers": [
{
"type": "meshPyramid",
"id": "mesh0",
"name": "YourProduction",
"description": "Model generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>",
"SRS": "– given SRS –",
"SRSOrigin": [0,0,0],
"root": "Data/YourProduction.3mxb"
}
   ]
}

要自定义 Web Viewer 中显示的消息,您必须修改以粗体显示的名称和描述标签。该 Web 应用程序支持场景描述中的 html 标签。例如,以下标签:

"description": "Scene generated by ContextCapture, &copy;<a href='http://www.bentley.com' target='_blank'>Bentley</a>",

将在应用程序中显示如下:

注释: 请注意引号。由于它们表示标签结束,因此不应在场景描述内使用引号。例如,以下代码将生成错误:
Error: "description": "Scene generated by ContextCapture, copyright <a href="http://www.bentley.com" target="_blank">Bentley</a>"

如果确实需要在描述中使用引号,请使用 ' 或 \":

OK: "description": "Scene generated by ContextCapture, copyright <a href=\"http://www.bentley.com\" target=\"_blank\">Bentley</a>"